package com.equipment.system.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.equipment.system.entity.Equipment;
import com.equipment.system.pojo.EchartData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2018-03-19 14:43
 **/
@Mapper
public interface EquipmentMapper extends BaseMapper<Equipment> {

	/**
	 *
	 * 获取设备信息
	 * @param pagination  分页参数
	 * @param province
	 * @return
	 */
	List<Equipment> selectEquipmentList(Pagination pagination,@Param("province") String province);


	/**
	 * 根据城市获取地图数据
	 * @return
	 */
	Set<EchartData> getMapDataByProvince();
}
